import createAxios from '/@/utils/axios'

export function automaticShipping(method: 'post', params: object = {}) {
    return createAxios({
        url: '/order/orderShip/automaticShipping',
        data: params,
        method: method,
    })
}

export function mandatoryShipping(method: 'post', params: object = {}) {
    return createAxios({
        url: '/order/orderShip/mandatoryShipping',
        data: params,
        method: method,
    })
}

export function exportExcel(method: 'post', params: object = {}) {
    return createAxios({
        url: '/order/orderShip/export',
        data: params,
        responseType: "blob",
        method: method,
    })
}

export function endShipping(method: 'post', params: object = {}) {
    return createAxios({
        url: '/order/orderShip/endShipping',
        data: params,
        method: method,
    })
}

export function getSplitOrderInfo(params: object = {}) {
    return createAxios({
        url: '/order/orderShip/splitOrderInfo',
        data: params,
        method: 'post',
    })
}

export function editSplitOrder(params: object = {}) {
    return createAxios({
        url: '/order/orderShip/editSplitOrder',
        data: params,
        method: 'post',
    })
}